/*本文件方法用于生成各种布置报内容*/

///新增时所发布置报  
//messageArea:区域   
//1	西北区
//2	西南区
//3	新疆区
//4	中南区
//5	东北区
//6	华北区
//7	华东区
//8	流量管理室
//9	运行监控室
//messageType:航班信息
//1	新增计划申请
//2	取消已批复计划申请
//3	取消已申请未批复计划申请
//4	更改已批复计划申请1
//5	更改已批复计划申请2
//6	更改未批复计划申请
//flight 航班信息
function makeLayoutMessage(messageArea,messageType)
{
	var flight=rowData;
	switch(messageArea){
		case "1"://西北区
			switch(messageType){
				case "1":
				{
					return "MSG TO SPMS XB ATMB  \n "
							+"NSJ U/H FLIGHT PLAN ADD AS FLW:PEK TIME \n "
							+"1."+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE: "+flight.routePoint+"  \n "
							+"B.REGS/HUANGHAIBO/010-84166306 \n "
					break;
				}
				case "2":
				{
					return "MSG TO SPMS XB ATMB \n"
							+"ATTN: GDO/G/C1 \n"
							+"NSJ U/H FLIGHT PLAN CNL AS FLW:PEK TIME \n"
							+"1."+flight.flightNo+" "+flight.departure4Code
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE:"+flight.routePoint+" \n"
							+"B.REGS/LAIZHIFENG/010-84166306"
					break;
				}
				case "4":
				{
					return "MSG TO SPMS XB ATMB \n"
					+"ATTN: GDO/G/R1 \n"
					+"NSJ U/H FLIGHT PLAN CHG AS FLW: PEK TIME \n"
					+"1.ORIGINAL SKED: \n"
					+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
					+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
					+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
					+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
					+"CHG AS BLW: \n"
					+" \n"
					+"OTHERS:NO CHANGE \n"
					+"B.REGS/ "
					break;
				}
				default:
					return "无布置报";
			};
			break;
		case "2"://西南区
			switch(messageType){
				case "1":
				{
					return "MSG TO SPMS XN ATMB  \n "
							+"ATTN:GDO/G/N \n "
							+"NSJ U/H FLIGHT PLAN AS FLW:PEK TIME \n "
							+"1."+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE: "+flight.getRouteTrend()+"  \n "
							+"B.REGS/HUANGHAIBO/010-84166306 \n "
					break;
				}
				case "2":
				{
					return "MSG TO SPMS XN ATMB \n"
							+"ATTN: GDO/G/C1 \n"
							+"NSJ U/H FLIGHT PLAN CNL AS FLW:PEK TIME \n"
							+"1."+flight.flightNo+" "+flight.departure4Code
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE:"+flight.routePoint+" \n"
							+"B.REGS/LAIZHIFENG/010-84166306"
					break;
				}
				case "4":
				{
					return "MSG TO SPMS XN ATMB \n"
					+"ATTN: GDO/G/R1 \n"
					+"NSJ U/H FLIGHT PLAN CHG AS FLW: PEK TIME \n"
					+"1.ORIGINAL SKED: \n"
					+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
					+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
					+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
					+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
					+"CHG AS BLW: \n"
					+" \n"
					+"OTHERS:NO CHANGE \n"
					+"B.REGS/ "
					break;
				}
				default:
					return "无布置报";
			};
			break;
		case "3"://新疆区
			switch(messageType){
				case "1":
				{
					return "MSG TO SPMS XJ ATMB  \n "
							+"ATTN:GDO/G/N \n "
							+"NSJ U/H FLIGHT PLAN ADD AS FLW:PEK TIME \n "
							+"1."+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE: "+flight.routePoint+"  \n "
							+"FLISHT LEVEL:S0360"
							+"B.REGS/HUANGHAIBO/010-84166306 \n "
					break;
				}
				default:
					return "无布置报";
			};
			break;
		case "4"://中南区
			return "无布置报";
			break;
		case "5"://东北区
			switch(messageType){
				case "1":
				{
					return "MSG TO SPMS DB ATMB  \n "
							+"ATTN:GDO/G/N \n "
							+"NSJ U/H FLIGHT PLAN AS FLW:PEK TIME \n "
							+"1."+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE: "+flight.getRouteTrend()+"  \n "
							+"B.REGS/HUANGHAIBO/010-84166306 \n "
					break;
				}
				case "2":
				{
					return "MSG TO SPMS DB ATMB \n"
							+"ATTN: GDO/G/C1 \n"
							+"NSJ U/H FLIGHT PLAN CNL AS FLW:PEK TIME \n"
							+"1."+flight.flightNo+" "+flight.departure4Code
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE:"+flight.getRouteTrend()+" \n"
							+"B.REGS/LAIZHIFENG/010-84166306"
					break;
				}
				case "5":
				{
					return "MSG TO SPMS DB ATMB \n"
					+"ATTN: GDO/G/R2 \n"
					+"NSJ U/H FLIGHT PLAN AS FLW: PEK TIME \n"
					+"1.ORIGINAL SKED: \n"
					+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
					+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
					+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
					+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
					+"CHG AS BLW: \n"
					+"B.REGS/ "
					break;
				}
				default:
					return "无布置报";
			};
			break;
		case "6"://华北区
			switch(messageType){
				case "1":
				{
					return "MSG TO SPMS HB ATMB  \n "
							+"ATTN:GDO/G/N \n "
							+"NSJ U/H FLIGHT PLAN ADD AS FLW:PEK TIME \n "
							+"1."+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE: "+flight.getRouteTrend()+"  \n "
							+"FLIGHT LEVEL:S0270  \n "
							+"B.REGS/HUANGHAIBO/010-84166306 \n "
					break;
				}
				case "2":
				{
					return "MSG TO SPMS DB ATMB \n"
							+"ATTN: GDO/G/C1 \n"
							+"NSJ U/H FLIGHT PLAN CNL AS FLW:PEK TIME \n"
							+"1."+flight.flightNo+" "+flight.departure4Code
							+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
							+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
							+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
							+"FLIGHT ROUTE:"+flight.getRouteTrend()+" \n"
							+"B.REGS/LAIZHIFENG/010-84166306"
					break;
				}
				case "5":
				{
					return "MSG TO SPMS DB ATMB \n"
					+"ATTN: GDO/G/R2 \n"
					+"NSJ U/H FLIGHT PLAN AS FLW: PEK TIME \n"
					+"1.ORIGINAL SKED: \n"
					+flight.flightNo+" "+flight.acRegName+" "+flight.acTypeName
					+" "+flight.departure4Code+(flight.std.replace(":",""))+" "
					+flight.arrival4Code+(flight.sta.replace(":",""))+" ON "
					+moment(flight.flightDate).format("DDMMMYYYY")+" \n "
					+"CHG AS BLW: \n"
					+"B.REGS/ "
					break;
				}
				default:
					return "无布置报";
			};
			break;
		case "7"://华东区
			break;
		case "8"://流量管理室
			break;
		case "9"://运行监控室
			break;
		default:
			break;
	}
	return "无相关类型布置报";
}